/**秒杀活动管理接口模块 */
import axios from "../utils/request";

// 获取秒杀活动数据
export const getSeckList = () => axios({
    url: "/api/secklist",
})

// 增加秒杀活动
export const addSeck = (seckForm) => axios({
    url: "/api/seckadd",
    method: "POST",
    data: seckForm
})
// 删除秒杀活动
export const delSeck = (id) => axios({
    url: '/api/seckdelete',
    method: "POST",
    data: { id }
})
// 编辑秒杀活动
export const ediSeck = (seckForm) => axios({
    url: "/api/seckedit",
    method: "POST",
    data: seckForm
})